<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">

<!--                        <div th:text="${examinationBatch}"></div>-->

                        <input id="id" name="id" th:value="${examinationBatch.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">竞赛批次：</label>
                            <div class="col-sm-8">
                                <select id="cbatchId" name="cbatchId" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${certificationBatch}" th:selected="${examinationBatch.cbatchId eq item.id}"
                                            th:value="${item.id}" th:text="${item.name}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">竞赛名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" th:value="${examinationBatch.name}" class="form-control" placeholder="请输入竞赛名称"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">竞赛编号：</label>
                            <div class="col-sm-8">
                                <input id="competitionName" name="competitionName" placeholder="请输入项目编号" class="form-control" type="text" th:value="${examinationBatch.competitionName}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">竞赛开始时间：</label>
                            <div class="col-sm-8">
                                <input id="startTime" name="startTime"
                                       th:value="${examinationBatch.startTime} eq null ? '' : ${#dates.format(examinationBatch.startTime, 'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">竞赛结束时间：</label>
                            <div class="col-sm-8">
                                <input id="endTime" name="endTime"
                                       th:value="${examinationBatch.endTime} eq null ? '' : ${#dates.format(examinationBatch.endTime, 'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">竞赛类型：</label>
                            <div class="col-sm-8">
                                <select id="typeItem" name="type" class="form-control">
                                    <option value="">请选择竞赛类型</option>
                                    <option value="2" th:selected="${examinationBatch.type == 2}">职业素养测评</option>
                                </select>
                            </div>
                        </div>


                        <div class="form-group" style="display: none">
                            <label class="col-sm-3 control-label">合格分数：</label>
                            <div class="col-sm-8">
                                <input id="passMark" name="passMark" th:value="${examinationBatch.passMark}"
                                       class="form-control" type="text">
                            </div>
                        </div>
<!--                        <div class="form-group" style="display: none">-->
<!--                            <label class="col-sm-3 control-label">考试类型：</label>-->
<!--                            <div class="col-sm-8">-->
<!--                                <input id="typeHidden" th:value="${examinationBatch.type}" class="form-control"-->
<!--                                       type="hidden">-->
<!--                                <select id="type" name="type" class="form-control">-->
<!--                                    <option value="">请选择</option>-->

<!--                                    <option value="3">理论竞赛</option>-->
<!--                                </select>-->
<!--                            </div>-->
<!--                        </div>-->
                        <div class="form-group" style="display:none;">
                            <label class="col-sm-3 control-label">总分数：</label>
                            <div class="col-sm-8">
                                <input id="totalScore" name="totalScore" th:value="${examinationBatch.totalScore}"
                                       class="form-control" type="text">
                            </div>
                        </div>


                        <div class="form-group" style="display: none">
                            <label class="col-sm-3 control-label">批次类型：</label>
                            <div class="col-sm-8">
                                <input id="batchTypeHidden" th:value="${examinationBatch.batchType}" class="form-control"
                                       type="hidden">
                                <select id="batchType" name="batchType"  class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1">考试测试</option>
                                    <option value="2">正式考试</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/examinationBatch/edit.js">
</script>
</body>
</html>
